package cn.fastoo.common.entity.product.Query;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by lowkey on 17/7/24.
 */
@Table(name = "    `product_category_attrgroup_attr`  pcaa   INNER JOIN  `product_attr` pt on pcaa.`product_attr_id`  = pt.id ")
public class ViewProductCategoryAttrgroupAttr {


    /** 主键ID **/
    @Id
    @Column(name = "id",columnDefinition = "pcaa.id")
    private Long id;

    @Column(name = "product_category_attrgroup_id",columnDefinition = "pcaa.product_category_attrgroup_id")
    private Long productCategoryAttrgroupId;

    @Column(name = "product_attr_id",columnDefinition = "pt.id")
    private Long productAttrId;

    @Column(name = "product_att_name",columnDefinition = "pt.name")
    private String productAttrName;

    @Column(name = "inputType",columnDefinition = "pt.input_type")
    private Integer inputType;
    @Column(name = "is_sale",columnDefinition = "pt.is_sale")
    private Integer isSale;

    private List<ViewProductCategoryAttrgroupAttrValue> values = new ArrayList<>();


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public Long getProductCategoryAttrgroupId() {
        return productCategoryAttrgroupId;
    }

    public void setProductCategoryAttrgroupId(Long productCategoryAttrgroupId) {
        this.productCategoryAttrgroupId = productCategoryAttrgroupId;
    }

    public Long getProductAttrId() {
        return productAttrId;
    }

    public void setProductAttrId(Long productAttrId) {
        this.productAttrId = productAttrId;
    }

    public String getProductAttrName() {
        return productAttrName;
    }

    public void setProductAttrName(String productAttrName) {
        this.productAttrName = productAttrName;
    }

    public Integer getIsSale() {
        return isSale;
    }

    public void setIsSale(Integer isSale) {
        this.isSale = isSale;
    }

    public Integer getInputType() {
        return inputType;
    }

    public void setInputType(Integer inputType) {
        this.inputType = inputType;
    }

    public List<ViewProductCategoryAttrgroupAttrValue> getValues() {
        return values;
    }

    public void setValues(List<ViewProductCategoryAttrgroupAttrValue> values) {
        this.values = values;
    }
}
